﻿using System.ComponentModel.DataAnnotations.Schema;

namespace Stu_sys.Entity
{
    public class Subject
    {
        public int SubjectId { get; set; }
        public string? SubjectName { get; set; }

        //创建时间
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }
        //修改时间
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
